package com.zjw.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zjw.common.handler.Encrypt;
import com.zjw.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @Author:0xOO
 * @Date: 2018/9/26 0026
 * @Time: 15:20
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User Sel(int id);

    List<User> SelectAll();

    int update(@Param("user") User user);

    int insert1(@Param("user") User user, @Param("encrypt")Encrypt encrypt);

    int delete(@Param("id") int id);
}
